home *** CD-ROM | disk | FTP | other *** search
/ Amiga Developer CD 2.1 / Amiga Developer CD v2.1.iso / NDK / NDK_3.5 / Examples / Workbench / MakeIconVisible.c < prev    next >
Encoding:
C/C++ Source or Header  |  1999-10-30  |  998 b   |  45 lines

  1. /*
  2.  * $Id$
  3.  *
  4.  * :ts=4
  5.  *
  6.  * COPYRIGHT:
  7.  *
  8.  *   Unless otherwise noted, all files are Copyright (c) 1999 Amiga, Inc.
  9.  *   All rights reserved.
  10.  *
  11.  * DISCLAIMER:
  12.  *
  13.  *   This software is provided "as is". No representations or warranties
  14.  *   are made with respect to the accuracy, reliability, performance,
  15.  *   currentness, or operation of this software, and all use is at your
  16.  *   own risk. Neither Amiga nor the authors assume any responsibility
  17.  *   or liability whatsoever with respect to your use of this software.
  18.  *
  19.  */
  20.  
  21. #include <exec/libraries.h>
  22.  
  23. #include <clib/wb_protos.h>
  24. #include <pragmas/wb_pragmas.h>
  25.  
  26. /****************************************************************************/
  27.  
  28. extern struct Library * WorkbenchBase;
  29.  
  30. /****************************************************************************/
  31.  
  32. int
  33. main(int argc,char **argv)
  34. {
  35.     if(WorkbenchBase->lib_Version >= 44)
  36.     {
  37.         int i;
  38.  
  39.         for(i = 1 ; i < argc ; i++)
  40.             MakeWorkbenchObjectVisibleA(argv[i],NULL);
  41.     }
  42.  
  43.     return(0);
  44. }
  45.